package com.ipemon.exception;

import com.ipemon.model.Logger;
import com.ipemon.server.PlayerNet;

public class GameProtocolDisRespectException extends Exception {
	
	public GameProtocolDisRespectException(String string) {
		String errMsg = "Protocol disrespected by the other party";
		System.err.println(errMsg);
		Logger.getInstance().log(this, errMsg);
	}

	public GameProtocolDisRespectException(Object object, String step) {
		String errMsg = object.getClass().getName() + " - Protocol disrespected by the other " +
				"party during conversation : " + step;
		Logger.getInstance().log(this, errMsg);
		System.err.println(errMsg);
	}
	
	
	
	
}
